/**
 * @param {Array} 矩形A [[Ax1,Ay1],[Ax2,Ay2]]
 * @param {Array} 矩形B [[Bx1,By1],[Bx2,By2]]
 * */ 
function isFit(rectangle1,rectangle2){
    let AX1=rectangle1[0][0],
        Ax2=rectangle1[1][0],
        Ay1=rectangle1[0][1],
        Ay2=rectangle1[1][1]
    let BX1=rectangle2[0][0],
        Bx2=rectangle2[1][0],
        By1=rectangle2[0][1],
        By2=rectangle2[1][1]
    
    if(Bx2<Ax1){// 在左边
        if(){

        }
    }else if(Bx1>Ax2){// 判断y轴是否相交
        return true
    }else{
        return false
    }
}
const rectangle1=[[1,1],[3,4]]
const rectangle2=[[3,5],[5,2]]